| lcDgGetValue | Home |
|
BOOL lcDgGetValue ( HANDLE hWnd, int Left, int Top, LPCWSTR szCaption, LPCWSTR szPrompt ); |
| hWnd | |
| Handle to a parent window for a dialog. It can be LiteCAD window or any HWND type window. | |
| Left Top | |
|
Coordinates of left-top corner of the dialog, relative to parent window. If negative value is specified for both coordinates (-1), then the dialog will be placed at center of parent window. | |
| szCaption | |
| Text for dialog caption. | |
| szPrompt | |
| Prompt text. | |
| If the function succeeds, the return value is nonzero (TRUE). |
WCHAR szValue[32];
double Radius=5.0; // initial value
swprintf( szValue, L"%.3f", Radius );
lcPropPutStr( 0, LC_PROP_G_DLGVAL, szValue );
if (lcDgGetValue( m_hLcWnd, -1, -1, L"Fillet", L"Enter Radius:" )){
wcscpy( szValue, lcPropGetStr( 0, LC_PROP_G_DLGVAL ));
if (szValue[0] != 0){
Radius = wcstod( szValue, NULL );
}
}